#ifndef _COMMON_H
#define _COMMON_H

#include "head.h"
#include "argvs.h"

#define	_toupper(c)		(((c) >='a' && (c) <= 'z')?((c) + 'A' - 'a'):(c))
#define	_tolower(c)	(((c) >='A' && (c) <= 'Z')?((c) + 'a' - 'A'):(c))

#define str_equ(s1, s2) (!strcmp((s1), (s2)))

#define DESTRUCT(x) typedef struct _##x x

#ifndef OK
#define OK      0
#endif
#ifndef ERROR
#define ERROR   1
#endif

typedef struct{
    char *str;
    int argc;
    char *argv[];
}ARGS;


#endif  // #ifndef _COMMON_H
